package com.zw.data.mybatis.service.impl;

import com.zw.data.mybatis.entity.Product;
import com.zw.data.mybatis.mapper.ProductMapper;
import com.zw.data.mybatis.service.ProductService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ProductServiceImpl implements ProductService {
    @Resource
    ProductMapper productMapper;

    @Override
    public List<Product> queryProduct(int page, int size, String keyword) {
        return productMapper.selectProductsByName(keyword);
    }
}
